package com.mainworks.commons.entity;

import lombok.Data;

@Data
public class User {
    private String id; // 主键
    private String orgId;// 机构ID
    private String departmentId;//部门ID
    private String realName; //real_name  实名
    private String userName;// 用户登录名
    private String nickname; // 昵称
    private String cardNo;// 身份证号码
    private String password; //密码
    private long passwordOverdue; // 密码过去时间毫秒数
    private String email; // 电子邮箱
    private String mobilePhone; //手机号码
    private String wechatOpenId; // 微信的openId
    private String alipayOpenId; // 支付宝的openId
    private int isSuperAdmin = 0; // 是否是超级管理员
    private int isExpired = 0; // 是否过期
    private int isLocked = 0; // 是否锁定
    private int isEnabled = 0; // 是否启用

    public User() {
    }

    public User(String id, String orgId, String departmentId, String realName, String userName, String nickname, String cardNo, long passwordOverdue, String email, String mobilePhone, String wechatOpenId, String alipayOpenId, int isSuperAdmin, int isExpired, int isLocked, int isEnabled,String password) {
        this.id = id;
        this.orgId = orgId;
        this.departmentId = departmentId;
        this.realName = realName;
        this.userName = userName;
        this.nickname = nickname;
        this.cardNo = cardNo;
        this.passwordOverdue = passwordOverdue;
        this.email = email;
        this.mobilePhone = mobilePhone;
        this.wechatOpenId = wechatOpenId;
        this.alipayOpenId = alipayOpenId;
        this.isSuperAdmin = isSuperAdmin;
        this.isExpired = isExpired;
        this.isLocked = isLocked;
        this.isEnabled = isEnabled;
        this.password = password;
    }
}
